{include file="../header.html" title="图书详情"}
	<div id="main">
		<div id="main_title">您当前处于 
			<span class="weightFont">用户管理</span> >> 
			<span class="softFont">
				{if $bookDetail['title'] }编辑{$bookDetail['title']}信息
				{else}编辑图书信息
				{/if}
			</span>
		</div>
		<div id="main_body">
			<center>
				<form id="editForm" name="editForm">
					<div id="formTitle">
						<em>{$bookDetail['title']}</em>的信息
					</div>
					<table cellpadding="5" cellspacing="5">
						<tr>
							<th>
								<label for="bid">图&nbsp;书&nbsp;号:</label>
							</th>
							<td>
								<input type="text" name="bid" id="bid" value="{$bookDetail['bid']}" />
							</td>
						</tr>
						<tr>
							<th>
								<label for="title">书&nbsp;&nbsp;&nbsp;&nbsp;名:</label>
							</th>
							<td>
								<input type="text" name="title" id="title" value="{$bookDetail['title']}" />
							</td>
						</tr>
						<tr>
							<th>
								<label for="author">作&nbsp;&nbsp;&nbsp;&nbsp;者:</label>
							</th>
							<td>
								<input type="text" name="author" id="author" value="{$bookDetail['author']}" />
							</td>
						</tr>
						<tr>
							<th>
								<label for="description">简&nbsp;&nbsp;&nbsp;&nbsp;介:</label>
							</th>
							<td>
								<textarea name="description" id="description" cols="20" rows="5" >{$bookDetail['description']}</textarea>
							</td>
						</tr>
						<tr>
							<th>
								<label for="tid">分&nbsp;&nbsp;&nbsp;&nbsp;类:</label>
							</th>
							<td>
								<select name="tid" id="tid" >
									{foreach $typeList as $k=>$v}
									<option value="{$v['typeid']}" {if $v['typeid'] eq $bookDetail['tid']} selected {/if}>
										{$v['typename']}
									</option>
									{/foreach}
								</select>
							</td>
						</tr>
						<tr>
							<th><label for="pubtime">出版时间:</label></th>
							<td>
								<input type="text" onclick="{literal}WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'}){/literal}" name="pubtime" id="pubtime" value="{$bookDetail['pubtime']|date_format:'%Y-%m-%d'}" />
							</td>
						</tr>
						<tr>
							<th><label for="isShow">是否上架:</label></th>
							<td>
								<select id="isShow">
									{foreach $isShow as $k => $v}
									<option value="{$k}" {if $k eq $bookDetail['is_show']}selected{/if}>{$v}</option>
									{/foreach}
								</select>
							</td>
						</tr>
						<tr>
							<th><label for="isLend">出借情况:</label></th>
							<td>
								<select id="isLend">
									{foreach $isLend as $k => $v}
									<option value="{$k}" {if $k eq $bookDetail['is_lend']}selected{/if}>{$v}</option>
									{/foreach}
								</select>
							</td>
						</tr>
					</table>
					<input type="hidden" id="id" value="{$bookDetail['id']}" />
					<div id="saveBtn">保存</div>
				</form>
			</center>
		</div>
	</div>
{include file="../footer.html"}